package utools

func IndexOf[T comparable](slice []T, target T) int {
	inx := -1
	for i := 0; i < len(slice); i++ {
		sItem := slice[i]
		if sItem == target {
			return i
		}
	}
	return inx
}

func Include[T comparable](slice []T, target T) bool {
	for i := 0; i < len(slice); i++ {
		sItem := slice[i]
		if sItem == target {
			return true
		}
	}
	return false
}
